package com.yc.bbs.controller;

import com.yc.bbs.dao.BoardMapper;
import com.yc.bbs.entity.Board;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * BBS论坛-板块表-13 前端控制器
 * </p>
 *
 * @author ly
 * @since 2024-11-23
 */
@RestController
@RequestMapping("/board")
public class BoardController {
    @Autowired
    BoardMapper boardMapper;
    @GetMapping("query")
    List<Board> query(){
        return boardMapper.selectByPid(0);
    }
}
